package com.ujiuye.service;

import com.ujiuye.bean.User;
import com.ujiuye.dao.EnrollDao;

/**
 * 用户业务逻辑层
 */
public class EnrollService {

    public boolean register(User user){

        EnrollDao enrollDao = new EnrollDao();
        // 在业务逻辑层调用Dao层方法,返回结果
        int row = enrollDao.saveUser(user);
        // 判断并返回给控制层
        return row > 0 ? true : false;
    }

}
